CXX ?= g++

DEBUG ?= 1
ifeq ($(DEBUG), 1)
    CXXFLAGS += -g
else
    CXXFLAGS += -O2

endif

server: main.cpp  list_timer.cpp http_conn.cpp log.cpp sql_connection_pool.cpp  webserver.cpp config.cpp
	$(CXX) -o server  $^ $(CXXFLAGS) -lpthread -L/usr/lib64/mysql -lmysqlclient

.PHONY:clean
clean:
	rm  -r server
## mv [-fiv] /home/ankle/workspace/test/MySQL/* /usr/lib/